---
layout: page
title: 分类
nav: category
description: 文章分类
permalink: /categories/
---



<div class="tag-list">
    {% for category in site.categories reversed %}
      <a href="#{{ category | first }}">{{ category | first }} ({{ category | last | size }})</a>
    {% endfor %}
</div>


<div class="category-list">
{% for category in site.categories reversed %}
  <div id="{{ category | first }}">
      <h3  class="m-list__title"><i class="icon iconfont icon-folder"></i>{{ category | first }}</h3>
      <ul class="m-list">
      {% for post in category.last %}
        <li class="list-item">
            <a href="{{site.base_path}}{{ post.url }}">
                <span class="post-date">{{ post.date|date:"%Y-%m-%d" }}</span><p class="post-title">{{ post.title }}</p>
            </a>
        </li>
      {% endfor %}
      </ul>
    </div>
{% endfor %}
</ul>